<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>元素环绕</title>
</head>
<body>
    <div>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <span class="front ele">前</span>
    <img class="float" src="./星星.png">
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
    <span class="back ele">后</span>
<style>
    body{
        margin-right: 50px;
        margin-left: 100px;
        background-image: url(/背景5.jpg);
        background-size: 100%;
      
    }
    .float{
        float: left;
    }
    .ele{
        display: inline-block;
        width: 30px;
        height: 30px;
        color: #fff;
        text-align: center;
        line-height: 30px;
        border-radius: 50%;
    }
    .front{
        background-color: #000;
    }
    .back{
        background-color: blue;
    }
    
</style>
    </div>
</body>
</html>